summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2023-07-26 16:33:14 +0200
committerGitHub <noreply@github.com>2023-07-26 16:33:14 +0200
commit6ffcc3d5d2aac8e095aed138d4113a384a35f50e (patch)
tree7a39330e0c168f56fed9c23f423acfadf3cc0000
parentMerge pull request #11157 from lat9nq/nasm (diff)
parentyuzu: Avoid reading broken games (diff)
downloadyuzu-6ffcc3d5d2aac8e095aed138d4113a384a35f50e.tar
yuzu-6ffcc3d5d2aac8e095aed138d4113a384a35f50e.tar.gz
yuzu-6ffcc3d5d2aac8e095aed138d4113a384a35f50e.tar.bz2
yuzu-6ffcc3d5d2aac8e095aed138d4113a384a35f50e.tar.lz
yuzu-6ffcc3d5d2aac8e095aed138d4113a384a35f50e.tar.xz
yuzu-6ffcc3d5d2aac8e095aed138d4113a384a35f50e.tar.zst
yuzu-6ffcc3d5d2aac8e095aed138d4113a384a35f50e.zip
-rw-r--r--src/yuzu/game_list_worker.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/yuzu/game_list_worker.cpp b/src/yuzu/game_list_worker.cpp
index 5c910c9e0..9404365b4 100644
--- a/src/yuzu/game_list_worker.cpp
+++ b/src/yuzu/game_list_worker.cpp
@@ -265,7 +265,11 @@ void GameListWorker::AddTitlesToGameList(GameListDir* parent_dir) {
std::vector<u8> icon;
std::string name;
u64 program_id = 0;
- loader->ReadProgramId(program_id);
+ const auto result = loader->ReadProgramId(program_id);
+
+ if (result != Loader::ResultStatus::Success) {
+ continue;
+ }
const PatchManager patch{program_id, system.GetFileSystemController(),
system.GetContentProvider()};